﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Person/Person.Master" AutoEventWireup="true"
    CodeBehind="QZList.aspx.cs" Inherits="ZF.WS.Person.service.QZList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


 <div class="location   mt10_">
        您现在的位置：<a href="/person/index.aspx">会员中心</a> >> <a href="<%=this.Request.Url %>">求租/求购房列表</a>
    </div>
    <div>&nbsp;</div>
    <!--自定义条件 开始-->
       <div class="tabHeadMenu">
        <a href="QZList.aspx" class='<%=(DealType==-1)?"action":"" %>'>全部房源</a> <a
            href="QZList.aspx?dt=1" class='<%=(DealType==1)?"action":"" %>'>求租房源</a>
        <a href="QZList.aspx?dt=2" class='<%=(DealType==2)?"action":"" %>'>求购房源</a>
 
    </div>
    <!--自定义条件 结束-->
    <!--列表 开始-->
    <div class="tabContainer">
        <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
            <Columns>
                <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending"
                    SortExpression="House.QiuzuId">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("House.QiuzuId")%>'></asp:Label>
                    </ItemTemplate> 
                </zf:TemplateField>
                <zf:TemplateField IsCheckField="true">
                </zf:TemplateField>
                <zf:TemplateField IsSerialNoField="true">
                </zf:TemplateField>
                <%-- <zf:TemplateField HeaderText="房源编号" DefaultSortDirection="Descending" SortExpression="House.EstateId">
                    <ItemTemplate>
                        <%#  10000+(int)Eval("House.EstateId")%>
                    </ItemTemplate>
                </zf:TemplateField>--%>
                <zf:TemplateField HeaderText="发布时间" DefaultSortDirection="Descending" SortExpression="House.AddTime">
                    <ItemTemplate>
                        <%#  Eval("House.AddTime")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="区域">
                    <ItemTemplate>
                        <%# Eval("City")%><%# Eval("Area") == null ? "" : string.Format("({0})", Eval("Area")) %>
                    </ItemTemplate>
                </zf:TemplateField>
                
                <zf:TemplateField HeaderText="物业类型">
                    <ItemTemplate>
                        <%# Eval("HouseType")%>
                    </ItemTemplate>
                </zf:TemplateField>
                 <zf:TemplateField HeaderText="房型" >
                    <ItemTemplate>
                        <%# Eval("HouseModel")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="价格" >
                    <ItemTemplate>
                        <%# Eval("Price")%>
                    </ItemTemplate>
                </zf:TemplateField>
                
                
                
                <zf:TemplateField HeaderText="联系人">
                    <ItemTemplate>
                        <%# Eval("House.Contact")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <%--   <zf:TemplateField HeaderText="联系人">
                    <ItemTemplate>
                        <%# GetStatus((int) Eval("House.Status"))%>
                    </ItemTemplate>
                </zf:TemplateField>--%>
                <zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <a href='/house/HouseReqInfo.aspx?hid=<%# Eval("House.QiuzuId")%>' target="_blank">查看</a>
                        | <a href='QZManage.aspx?ot=Edit&hid=<%# Eval("House.QiuzuId")%>'>修改</a> |
                        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%# Eval("House.QiuzuId") %>'
                            OnClientClick="return confirm('是否确定要删除此记录');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>
            </Columns>
        </zf:GridView>
    </div>
    <!--列表 结束-->
    <div class="mt5_ fc_">
    </div>
    <!--自定义按钮 开始-->
    <div class="btnContainer mt10_">
        <span class="fl_ mr10_">
            <input type="checkbox" class="checkAll" bind=".tab" />选中本页显示的所有<%=this.CTitle %></span>
        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='select'
            OnClientClick="return confirm('是否确定要删除选中记录');">删除选中的<%=this.CTitle %></zf:LinkButton>
            
               <a href="/house/HouseReq.aspx?ot=AddNew&dt=1" target="_blank">发布求租信息</a>
        <a href="/house/HouseReq.aspx?ot=AddNew&dt=2" target="_blank">发布求购信息</a>
 
    </div>
    <!--自定义按钮 结束-->
    <div class="fc_ mt10_">
    </div>
    <!--搜索 开始-->
    <div class="searchContainer  dn_">
        <table>
            <tr>
                <td class="l">
                    搜索选项:
                </td>
                <td class="m">
                    <div class="c">
                        <span class="t">物业名称:</span><span class="c">
                            <zf:TextBox runat="server" class="stxt" ID="tbTitle"></zf:TextBox></span> <span class="t">
                                &nbsp;&nbsp;发布时间(小于):</span><span class="c">
                                    <zf:TextBox runat="server" class="dttxt" ID="tbEndTime1" onfocus="calendar();"></zf:TextBox></span>
                        <br />
                        <span class="t">物业类型:</span><span class="c">
                            <zf:DropDownList runat="server" ID="ddlHouseType" class="stxt" AppendDataBoundItems="true">
                                <asp:ListItem Value="-1" Text="未选择"></asp:ListItem>
                            </zf:DropDownList>
                        </span>&nbsp; <span class="t">发布时间(大于):</span><span class="c">
                            <zf:TextBox runat="server" class="dttxt" ID="tbEndTime2" onfocus="calendar();"></zf:TextBox></span>
                        <zf:Button runat="server" ID="Button2" Text="搜 索" OnClick="Search" class="linkbtn" />
                        <zf:Button runat="server" ID="Button1" Text="全 部" OnClick="AllList" class="linkbtn" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <!--搜索 结束-->
</asp:Content>
